package com.sourcespro.mybatis.crudparams.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
* 分类 Entity
*
* @author 张浩伟
* @date 2018/07/09
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AddTreeDto {

    /**
     * 
     */
    @NotBlank(message = "不能为空")
    private String title;

    /**
     * 
     */
    @NotBlank(message = "不能为空")
    private Integer pid;

    /**
     * 
     */
    @NotBlank(message = "不能为空")
    private Integer lft;

    /**
     * 
     */
    @NotBlank(message = "不能为空")
    private Integer rgt;

    /**
     * 
     */
    @NotBlank(message = "不能为空")
    private Integer level;

    /**
     * 
     */
    @NotBlank(message = "不能为空")
    private String ids;

    /**
     * 排序
     */
    @NotBlank(message = "排序不能为空")
    private Integer order;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getLft() {
        return lft;
    }

    public void setLft(Integer lft) {
        this.lft = lft;
    }

    public Integer getRgt() {
        return rgt;
    }

    public void setRgt(Integer rgt) {
        this.rgt = rgt;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

}